﻿<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	mc:Ignorable="d"
	x:Class="FruitWeigher.UIEndMessageBox"
	d:DesignWidth="640" d:DesignHeight="480" Width="480" Height="768">
	<UserControl.Resources>
		<Storyboard x:Name="Ani_SHow">
			<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="GInterface" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)">
				<EasingDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="00:00:00.5000000" Value="1">
					<EasingDoubleKeyFrame.EasingFunction>
						<BackEase EasingMode="EaseOut" Amplitude="1"/>
					</EasingDoubleKeyFrame.EasingFunction>
				</EasingDoubleKeyFrame>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="GInterface" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)">
				<EasingDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
				<EasingDoubleKeyFrame KeyTime="00:00:00.5000000" Value="1">
					<EasingDoubleKeyFrame.EasingFunction>
						<BackEase EasingMode="EaseOut" Amplitude="1"/>
					</EasingDoubleKeyFrame.EasingFunction>
				</EasingDoubleKeyFrame>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
		<Storyboard x:Name="Ani_Hide">
			<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="GInterface" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)">
				<EasingDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
				<EasingDoubleKeyFrame KeyTime="00:00:01" Value="0">
					<EasingDoubleKeyFrame.EasingFunction>
						<BackEase EasingMode="EaseInOut"/>
					</EasingDoubleKeyFrame.EasingFunction>
				</EasingDoubleKeyFrame>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="GInterface" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)">
				<EasingDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
				<EasingDoubleKeyFrame KeyTime="00:00:01" Value="0">
					<EasingDoubleKeyFrame.EasingFunction>
						<BackEase EasingMode="EaseInOut"/>
					</EasingDoubleKeyFrame.EasingFunction>
				</EasingDoubleKeyFrame>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
	</UserControl.Resources>

	<Grid x:Name="LayoutRoot">
		<Grid.Background>
			<SolidColorBrush Color="#33000000"/>
		</Grid.Background>
		<Grid x:Name="GInterface" Margin="47,155,33,234" RenderTransformOrigin="0.5,0.5">
			<Grid.RenderTransform>
				<TransformGroup>
					<ScaleTransform/>
					<SkewTransform/>
					<RotateTransform/>
					<TranslateTransform/>
				</TransformGroup>
			</Grid.RenderTransform>
			<Rectangle Fill="White" Stroke="Black" StrokeThickness="12" RadiusX="19.5" RadiusY="19.5"/>
			<Rectangle Fill="White" Stroke="#FFFFCB58" StrokeThickness="2" RadiusX="19.5" RadiusY="19.5" Margin="34,30,34,28"/>
			<TextBlock x:Name="ScoreSum" HorizontalAlignment="Right" Width="142" FontFamily="Comic Sans MS" FontSize="48" FontWeight="Bold" Text="9999" TextAlignment="Center" TextWrapping="Wrap" Foreground="#FF007B97" Margin="0,63,52,0" Height="71" VerticalAlignment="Top"/>
			<TextBlock FontFamily="Comic Sans MS" FontSize="48" FontWeight="Bold" Text="Score:" TextAlignment="Center" TextWrapping="Wrap" Foreground="#FF007B97" Margin="47,63,194,0" Height="71" VerticalAlignment="Top"/>
			<Button x:Name="Btn_PlayAgin" Content="Play Again" HorizontalAlignment="Left" VerticalAlignment="Bottom" Margin="88,0,0,33" Foreground="Black" BorderBrush="Black" Width="228" Style="{StaticResource ButtonStyle1}" FontFamily="Comic Sans MS" Height="95" FontSize="32"/>
			<TextBlock x:Name="HighestScore" HorizontalAlignment="Right" Width="97" FontFamily="Comic Sans MS" FontSize="32" FontWeight="Bold" Text="9999" TextAlignment="Center" TextWrapping="Wrap" Foreground="#FF975A00" Margin="0,202,52,0" Height="45" VerticalAlignment="Top"/>
			<TextBlock FontFamily="Comic Sans MS" FontSize="32" FontWeight="Bold" TextAlignment="Center" TextWrapping="Wrap" Foreground="#FF975A00" Margin="47,155,114,0" Height="47" VerticalAlignment="Top"><Run Text="Highest"/><Run Text="Score:"/></TextBlock>
		</Grid>
	</Grid>
</UserControl>